package com.example.Controller;

import com.example.Service.impl.IntervieweeServiceImpl;
import com.example.pojo.Interviewee;
import com.example.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/interviewee")
public class IntervieweeController {

    @Autowired
    private IntervieweeServiceImpl intervieweeService;

    @PostMapping("/add")
    public Result addInterviewee(@RequestBody Interviewee interviewee) {
        return intervieweeService.addInterviewee(interviewee);
    }

}
